package com.fly.consumers.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.fly.consumers.service.ConsumersService;

@RestController
public class ConsumersController {

	@Autowired
	ConsumersService service;
	
	@GetMapping("hello")
	public String hello () {
		System.err.println("restTemplate");
		String hello = service.hello();
		return hello;
	}
}
